<?php

namespace app\index\model;

use think\Model;

class News extends Model
{
    //新闻页面内容展示
    public function getnewdetails($id){
    	$map['status'] = 1;
    	$map['id'] = $id;
    	$data = $this->where($map)->cache(true,60)->select();
    	if(!isset($data)){
    		return '新闻不存在';
    	}
    	return $data;
    }
}
